package com.codyy.lib.base.application.repos.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.codyy.lib.base.application.R
import com.codyy.lib.base.application.databinding.ItemBatchBinding
import com.codyy.lib.base.application.repos.model.Data

class DataBindingAdapter:BaseQuickAdapter<Data, BaseDataBindingHolder<ItemBatchBinding>>(R.layout.item_batch) {
    override fun convert(holder: BaseDataBindingHolder<ItemBatchBinding>, item: Data) {
        holder.dataBinding?.run {
            data=item
            executePendingBindings()
        }
    }
}